package com.yuanfeng.basedata.response;

/**
 * @ClassName ResponseResult
 * @Description 响应的结果
 * @Author yuanfeng
 * @Date 2019/9/5 21:55
 * @Version 1.0
 **/
public class ResponseResult<T> {

    /** 响应代码 */
    private Integer code;

    /** 返回的消息 */
    private String message;

    /** 返回的数据 */
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ResponseResult{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
